javascript remove last characters from string

48

javascript remove last characters from string -

const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'

Comments

Submit
0 Comments